<div class="Header-wrapper">
  <div class="header-container">
    <div class="contain clearfix">
      <a href="{:addon_url('wwh/index/index')}" title="" class="H-logo">
        <img src="{$config.logo|cdnurl}" alt="" class="" />
      </a>
      <div class="Hmenu-btn H-rMenu-btn">
        <a></a>
      </div>
      <div class="Hmenu-btn Hmenu-web">
        <a></a>
      </div>
      <ul class="H-nav clearfix">
        {volist name='nav' id='v'}
        {if $v.childlist}
        <li>
          <a href="{:addon_url('wwh/index/column', [':diyname'=>$v.diyname])}" title="" class="Hnav-menu {if $navCur.classify == $v.classify}nav-active{/if}">{$v.name}
            <i></i>
          </a>
          <div class="Hnav-sub">
            <div class="contain clearfix">
              <ul class="HnavSub-list clearfix">
                {volist name='v.childlist' id='vv'}
                <li>
                  <a href="{:addon_url('wwh/index/column', [':diyname'=>$vv.diyname])}" title="">{$vv.name}
                    <i></i>
                  </a>
                </li>
                {/volist}
              </ul>
              <div class="HnavSub-box">
                <div class="HnavSub-box-pic">
                  <a href="">
                    <img src="{$v.image|cdnurl}" alt="">
                  </a>
                </div>
              </div>
            </div>
          </div>
        </li>
       {else }
        <li>
          <a href="{:addon_url('wwh/index/column', [':diyname'=>$v.diyname])}" title="" class="Hnav-menu {if $navCur.classify == $v.classify}nav-active{/if}">{$v.name}
            <i></i>
          </a>
        </li>
        {/if}
        {/volist}
      </ul>
      <div class="H-action">
        <div class="H-mail">
          <a href="mailto:{$config.email}" title="" class="Hmail-menu">
            <i></i>
            <span>Mail</span>
            <b></b>
          </a>
        </div>
        <div class="H-srch">
          <a href="javascript:;" title="" class="Hsrch-menu">
            <span>Search</span>
            <i></i>
          </a>
          <div class="Hsrch-box">
            <div class="Hsrch-block contain clearfix">
              <form action="{:addon_url('wwh/index/search')}" method="post" id="top_form">
                <input type="submit" value="" class="btn" id="top_btn" />
                <input type="text" placeholder="新闻搜索..." class="text" name="keywords" id="top_key" />
                <a href="javascript:;" title="" class="close"></a>
              </form>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript">
    // 搜索
    $("#top_btn").click(function () {
        var top_key = $.trim($("#top_key").val());
        if (top_key == '') {
            alert("Please enter keywords");
            return false;
        }
        $("#top_form").submit();
    });
</script>
